//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { UserSign, UserSignResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooUserSignList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<UserSignResponse>(`/uctoo/user_sign/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooUserSign = async (id: string) => {
  return requestClient.get<UserSign>(`/uctoo/user_sign/${id}`);
};

export const adductooUserSign = async (data: Partial<UserSign>) => {
  return requestClient.post<UserSign>('/uctoo/user_sign/add', data);
};

export const edituctooUserSign = async (data: Partial<UserSign>) => {
  return requestClient.post<UserSign>('/uctoo/user_sign/edit', data);
};

export const deleteuctooUserSign = async (id: string) => {
  return requestClient.post<any>('/uctoo/user_sign/del', { id });
};
